package cn.gorit.entity.user;

import java.io.Serializable;

/**
 * @version v1.0
 * @Classname Collection
 * @Description 用户收藏相关实体类
 * @Author Gorit
 * @Created by 2021/3/8 23:38
 * @IDLE IntelliJ IDEA
 **/
public class Collection implements Serializable {
    // 收藏 ID， 自增
    private String collectionId;

    // 收藏用户 ID
    private String userId;

    // 收藏的文章 ID
    private String blogId;

    // 收藏日期
    private String collectionTime;

    public Collection() {
    }

    public Collection(String userId, String blogId, String collectionTime) {
        this.userId = userId;
        this.blogId = blogId;
        this.collectionTime = collectionTime;
    }

    public String getCollectionId() {
        return collectionId;
    }

    public void setCollectionId(String collectionId) {
        this.collectionId = collectionId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getBlogId() {
        return blogId;
    }

    public void setBlogId(String blogId) {
        this.blogId = blogId;
    }

    public String getCollectionTime() {
        return collectionTime;
    }

    public void setCollectionTime(String collectionTime) {
        this.collectionTime = collectionTime;
    }

    @Override
    public String toString() {
        return "Collection{" +
                "collectionId=" + collectionId +
                ", userId='" + userId + '\'' +
                ", blogId='" + blogId + '\'' +
                ", collectionTime='" + collectionTime + '\'' +
                '}';
    }
}
